﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EzDesk.Project.Service.Repositories;
using EzDesk.Project.Model;
using EzDesk.Project.Service.Repositories.Interfaces;
using EzDesk.EzAppApi.Utility.EzDeskAppApi;

namespace EzDesk.Project.Service.Tests.Mock
{
    public class Mock_ProjectTeamRepository : Mock_Repository<ProjectTeam>, IProjectTeamRepository
    {
        #region IProjectTeamRepository Members

        public SimpleUser GetProjectManager(Guid projectId)
        {
            return innerManager.GetAll().Where(p => p.ProjectId == projectId).SingleOrDefault().Manager;
        }

        #endregion
    }
}
